import request from '@/utils/request'

// 查询留级学生名单列表 lbj
export function listRepeate(query) {
  return request({
    url: '/teaching/repeate/list',
    method: 'get',
    params: query
  })
}

// 查询留级学生名单详细
export function getRepeate(id) {
  return request({
    url: '/teaching/repeate/' + id,
    method: 'get'
  })
}

// 新增留级学生名单
export function addRepeate(data) {
  return request({
    url: '/teaching/repeate',
    method: 'post',
    data: data
  })
}

// 修改留级学生名单
export function updateRepeate(data) {
  return request({
    url: '/teaching/repeate',
    method: 'put',
    data: data
  })
}

// 删除留级学生名单
export function delRepeate(id) {
  return request({
    url: '/teaching/repeate/' + id,
    method: 'delete'
  })
}

// 根据学生id查
export function getTaskData(data) {
  return request({
    url: '/teaching/repeate/getparems',
    method: 'post',
    data: data
  })
}

